package org.red_cross_service.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;
import lombok.experimental.Accessors;

@Entity
@TableName("sys_user")
@Data
@Accessors(chain =true)
public class SysUserEntity {
    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String username;
    private String password;
    private String avatar;
    @TableField(exist = false)
    private String token;
    @TableField(exist = false)
    private String newPassword;
}
